// 定义对象类型
interface LyricType {
  time: number;
  text: string;
}

// type LyricType = {
//   time: number;
//   text: string;
// };

// 歌词解析工具 (返回值类型不指定 也能被推导出来)
function parseLyric(lyric: string): LyricType[] {
  const lyrics: LyricType[] = [];
  lyrics.push({ time: 1111, text: "天空想要下雨" });
  return lyrics;
}

const lyricInfos = parseLyric("fdafdafdafa");
for (const item of lyricInfos) {
  console.log(item.time, item.text);
}

export {};
